package org.bonorsoft.modules.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.bonorsoft.modules.education.entity.Enclosure;

import java.util.List;

/**
 * @Description: 附件表
 * @Author: WilliamYe
 * @Date:   2021-06-22
 * @Version: V1.0
 */
public interface IEnclosureService extends IService<Enclosure> {
    boolean add(String noticeResponseId, String fileName, String file);

    String getFileByNoticeId(String noticeResponseId);

    int countByNoticeId(String noticeResponseId);

    boolean save(String noticeResponseId, String file);

    int deleteByNoticeId(String noticeResponseId);

    void deleteByNoticeIds(List<String> noticeResponseIds);
}
